# coding=utf-8
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from aihome import db, create_app
from aihome.models import *

app = create_app('development')

# 实例migrate
Migrate(app, db)
# 实例mangaer
manger = Manager(app)
# 将db命令添加到manger中
manger.add_command('db', MigrateCommand)

if __name__ == '__main__':
    print app.url_map


    manger.run()